package com.bckj.fastboot.iot.data.mongo.convert;

import com.bckj.fastboot.core.mapstruct.MapStructConfig;
import com.bckj.fastboot.iot.common.dto.request.IotAlarmDataRequest;
import com.bckj.fastboot.iot.common.dto.response.IotAlarmDataResponse;
import com.bckj.fastboot.iot.data.mongo.entity.IotAlarmData;
import org.mapstruct.Mapper;

/**
 * IotAlarmDataConvert
 *
 * @author wfc
 **/
@Mapper(config = MapStructConfig.class)
public interface IotAlarmDataConvert {

    IotAlarmData toEntity(IotAlarmDataRequest request);

    IotAlarmDataResponse toResponse(IotAlarmData entity);
}
